<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>博艺网-忘记密码</title>
    <link rel="shortcut icon" type="image/x-icon" href="http://img.boyitongcheng.com/favicon.ico" media="screen" />
    <link href="/common/css/common.css" rel="stylesheet" type="text/css"/>
    <link href="/common/css/index.css" rel="stylesheet" type="text/css"/>
    <link href="/common/css/iconfont.css" rel="stylesheet" type="text/css"/>
    <link href="/common/css/regist.css" rel="stylesheet" type="text/css"/>
    <script src="/common/js/jquery-1.8.2.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        var countdown=60;
        function settime(obj) {
            if (countdown == 0) {
                obj.removeAttribute("disabled");
                obj.value="免费获取验证码";
                countdown = 60;
                return;
            } else {
                obj.setAttribute("disabled", true);
                obj.value="重新发送(" + countdown + ")";
                countdown--;
            }
            setTimeout(function() {
                        settime(obj) }
                    ,1000)
        }

        function get_validate_code(obj) {
            var mobile = $("#mobile").val();
            if (mobile.length != 11)
            {
                alert("手机号格式不正确!");
                return;
            }

            $.post("/sendValidMsg",{
                'mobile':mobile
            },function(data, status){});

            settime(obj);
        }
    </script>
</head>

<body onload="toastFunction();">

<#include "header.ftl"/>

<div class="regist">
    <div class="img_left">&nbsp;</div>
    <div class="regist-form">
        <h2>忘记密码</h2>
        <form id="form" method="post" action="/submitForgetPwd" >
            <input type="text" id="mobile" name="mobile" placeholder=" 手机号" class="validate_code" /><br/>
            <div class="yzm">
                <input type="text" class="validate_code" name="validate_code" />
                <input type="button" class="validate_btn" id="btn" value="免费获取验证码" onclick="get_validate_code(this)" />
            </div>
            <input type="password" placeholder=" 输入新密码" class="validate_code" name="password" /><br/>
            <input type="password" placeholder=" 确认新密码" class="validate_code" name="re_password" /><br/>

            <button class="validate_btn" type="submit" >提交信息</button>

        </form>

    </div>

</div>

<#include "footer.ftl"/>

</body>
</html>